package com.coded2.mobileposto.service;

import java.util.Collection;
import java.util.List;

import javax.inject.Inject;

import com.coded2.infra.comum.ComumService;
import com.coded2.mobileposto.dao.PostoCombustivelDAO;
import com.coded2.mobileposto.model.PostoCombustivel;

public class PostoCombustivelService extends ComumService<PostoCombustivel> {

	private static final long serialVersionUID = 1L;

	@Inject
	PostoCombustivelDAO dao;
	
	@Override
	public List<PostoCombustivel> search(PostoCombustivel obj) throws Exception {			
		return dao.search(obj);	
	}
	
	@Override
	public PostoCombustivel searchByID(PostoCombustivel model) throws Exception {
		return dao.searchById(model);
	}

	public List<PostoCombustivel> searchByPosto(PostoCombustivel pc) {
		return dao.searchByPosto(pc);
	}

	
}
